PAGE FOR ALL DOCUMENT COLLECTIONS
<template>
    <el-container class="page-container">
        <el-header class="page-header">
            文档文档
        </el-header>
        <el-main class="page-main">
        <el-row>
            <el-col :span="8" class="collection-item" v-for="item in collectionList" :key="item.id">
                <el-card class="collection-item-container" shadow="hover" >
                    <div slot="header" class="collection-item-header">
                        <span class="collection-name">{{item.name}}</span>
                        <!-- <el-button style="float: right; padding: 3px 0" type="text">操作按钮</el-button> -->
                    </div>
                    <div class="collection-item-body">
                        <div class="doc-name">
                            {{item.description}}
                        </div>
                        <div v-for="doc in item.documents" :key="doc.id" class="text doc-name">
                            {{'列表内容 ' + doc.name }}
                        </div>
                    </div>
                    
                </el-card>
            </el-col>
        </el-row>
    </el-main>
        <el-footer class="page-footer">
嘿嘿嘿
        </el-footer>
    </el-container>
</template>

<script>

export default {
    name: 'collection-list',
    props: {
    msg: String
    },
    data() {
        return {
            collectionList: [
                {name:"文档文档",description:"文档简洁简洁简介简洁简介简洁简介简介简洁简洁简洁简介简洁简介简洁简介简介简洁",
                documents:[
                    {
                        name:"文档文档",
                    },
                    {
                        name:"222",
                    },
                    {
                        name:"嘿嘿嘿",
                    },
                    {name:"444",}
                ]},{name:"文档文档",description:"asljdkal",
                documents:[
                    {
                        name:"文档文档",
                    },
                    {
                        name:"222",
                    },
                    {
                        name:"嘿嘿嘿",
                    },
                    {name:"444",}
                ]},{name:"文档文档",description:"asljdkal",
                documents:[
                    {
                        name:"文档文档",
                    },
                    {
                        name:"222",
                    },
                    {
                        name:"嘿嘿嘿",
                    },
                    {name:"444",}
                ]},{name:"文档文档",description:"asljdkal",
                documents:[
                    {
                        name:"文档文档",
                    },
                    {
                        name:"222",
                    },
                    {
                        name:"嘿嘿嘿",
                    },
                    {name:"444",}
                ]},{name:"文档文档",description:"asljdkal",
                documents:[
                    {
                        name:"文档文档",
                    },
                    {
                        name:"222",
                    },
                    {
                        name:"嘿嘿嘿",
                    },
                    {name:"444",}
                ]},{name:"文档文档",description:"asljdkal",
                documents:[
                    {
                        name:"文档文档",
                    },
                    {
                        name:"222",
                    },
                    {
                        name:"嘿嘿嘿",
                    },
                    {name:"444",}
                ]},{name:"文档文档",description:"asljdkal",
                documents:[
                    {
                        name:"文档文档",
                    },
                    {
                        name:"222",
                    },
                    {
                        name:"嘿嘿嘿",
                    },
                    {name:"444",}
                ]},{name:"文档文档",description:"asljdkal",
                documents:[
                    {
                        name:"文档文档",
                    },
                    {
                        name:"222",
                    },
                    {
                        name:"嘿嘿嘿",
                    },
                    {name:"444",}
                ]}
            ]
        }
    },
}
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
.collection-item {
    padding: 10px;
}

.collection-item-container {
    border: 1px solid #ddd;
}

.collection-item-header {
    text-overflow: ellipsis;
    white-space: nowrap;
    height: 42px;
    line-height: 42px;
    padding: 0 15px;
    color: #333;
    border-radius: 2px 2px 0 0;
    font-size: 14px;
    margin: -20px;
}

.collection-item-body {
    margin: -10px -5px -10px -10px;
}

.page-container {
    margin-left: 50px;
    margin-right: 50px;
}
.page-header, .page-footer {
    /* background-color: #B3C0D1;
    color: #333; */
    /* text-align: center;
    line-height: 60px; */
}

.page-main {
    /* background-color: #E9EEF3;
    color: #333; */
    /* text-align: center;
    line-height: 160px; */
    margin-left: 30px;
    margin-right: 30px;
}

.collection-name {
    font-weight: 700;
}
.doc-name {
    text-overflow: ellipsis;
    font-size: 12px;
    line-height: 18px;
    color: #999!important;
    padding-left: 5px!important;
    padding-right: 5px!important
}
</style>
